package com.cai.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;

import java.util.Arrays;

@Controller
public class indexController {
    @GetMapping("/test")
    public String test(Model model){
        model.addAttribute("msg", "<h1> hello test </h1>");
        model.addAttribute("users", Arrays.asList("张三","李四","王五"));
        return "test";
    }
}
